package com.ai.demo.entity.vo;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.ai.chat.messages.Message;

@NoArgsConstructor
@Data
public class MessageVO {

    private String role;
    private String content;

    public MessageVO(Message  message) {
        this.content= message.getMessageType().getValue();
        this.content = message.getText();
    }


}
